package com.example.demo.service;

import com.example.demo.entity.Book;
import com.example.demo.mapper.BookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {

    @Autowired
    private BookMapper bookMapper;

    public void update(Book book) {
        bookMapper.update(book);
    }

    public void deleteBatch(List<Integer> ids) {
        bookMapper.deleteBatch(ids);
    }

    public void deleteById(Long id) {
        bookMapper.deleteById(id);
    }


}



